﻿@model MvcMusicStore.Models.Album
<div class="editor-label">@Html.LabelFor(model => model.Genre)</div>

<div class="editor-field">@Html.DropDownList("GenreId", new SelectList(ViewBag.Genres as System.Collections.IEnumerable, "GenreId", "Name", Model.GenreId))</div>

<div class="editor-label">@Html.LabelFor(model => model.Artist)</div>

<div class="editor-field">@Html.DropDownList("ArtistId", new SelectList(ViewBag.Artists as System.Collections.IEnumerable, "ArtistId", "Name", Model.ArtistId))</p>

<div class="editor-label">@Html.LabelFor(model => model.Title)</div>

<div class="editor-field">@Html.TextBoxFor(model => model.Title)
                          @Html.ValidationMessageFor(model => model.Title)</div>
<div class="editor-label">@Html.LabelFor(model => model.Price)</div>

<div class="editor-field">@Html.TextBoxFor(model => model.Price)
                          @Html.ValidationMessageFor(model => model.Price)</div>

<div class="editor-label">@Html.LabelFor(model => model.AlbumArtUrl)</div>

<div class="editor-field">@Html.TextBoxFor(model => model.AlbumArtUrl)
                          @Html.ValidationMessageFor(model => model.AlbumArtUrl)</div>
